/**   
 * @�ļ����: BaseEntity.java
 * @��·��: com.tdcms.core.entity
 * @����: TODO
 * @��˾���������������Ϣ�Ƽ����޹�˾
 * @���ߣ����˽�
 * @ʱ�䣺2013-7-11 ����10:23:48
 * @�汾��V1.0   
 */

package com.lxj.core.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;

/**
 * @�๦��˵����
 * @���޸��ߣ�
 * @�޸����ڣ�
 * @�޸�˵����
 * @��˾���������������Ϣ�Ƽ����޹�˾
 * @���ߣ����˽�
 * @����ʱ�䣺2013-7-11 ����10:23:48
 * @�汾��V1.0
 */

@MappedSuperclass
public class SYSBaseEntity implements Serializable {
	private static final long serialVersionUID = -3886724005055710763L;
	/**
	 * IDENTITY����������ݿ��Զ���ɣ���Ҫ���Զ������ͣ�
	 */
	private Long beanId;
	
	// 排列顺序
	private int priority;
	/**
	 * ʵ�崴��ʱ��
	 */
	private Timestamp beanCreateTime;
	/**
	 * ʵ�����һ�θ���ʱ��
	 */
	private Timestamp beanLastModidyfiTime;

	@Id
	@Column(name = "beanId")
	@SequenceGenerator(name = "TDCMS_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "TDCMS_BASE_IDENTITY")
	public Long getBeanId() {
		return beanId;
	}

	public void setBeanId(Long beanId) {
		this.beanId = beanId;
	}

	public Timestamp getBeanCreateTime() {
		return beanCreateTime;
	}

	public void setBeanCreateTime(Timestamp beanCreateTime) {
		this.beanCreateTime = beanCreateTime;
	}

	public Timestamp getBeanLastModidyfiTime() {
		return beanLastModidyfiTime;
	}

	public void setBeanLastModidyfiTime(Timestamp beanLastModidyfiTime) {
		this.beanLastModidyfiTime = beanLastModidyfiTime;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

}
